//
//  BannerView.h
//  SocketDemo
//
//  Created by apple on 17/2/23.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BannerViewDelegate <NSObject>

-(void)didClickImageView;

@end

typedef void (^BannerBlock) (NSInteger currentImageIndex);

@interface BannerView : UIView
@property (nonatomic , strong) NSArray * imageNameArray;
@property (nonatomic , assign) NSInteger theIndex;
@property (nonatomic , copy) BannerBlock block;
@property (nonatomic , strong)UIPageControl * pageControl;
@property (nonatomic , assign)BOOL isShowPageControl;
@property (nonatomic , assign) id<BannerViewDelegate> delegate;
@property (nonatomic , strong) NSTimer * timer;
@property (nonatomic , assign) BOOL isAutoScroll;

//开始
-(void)ybStartTimer;
//暂停
-(void)ybSuspendTimer;
@end
